<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript">
jQuery("#mybtn").click(function() {
	jQuery.ajax({
        type: "post",
        url: "/string",
        success: function(data) {
            if (data.flag) {
                alert('注册成功！');

            } else {
            	 alert('注册失败！');
            }
        },
        error: function(data) {}
    });
});


</script>
<title>首页面</title>
</head>
<body>
	用户总数：${userCnt}
	<button id='mybtn'>请求</button>
	<a id="res">empty</a>
</body>
</html>
